package com.wish.group05.financial.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jeequan.jeepay.Jeepay;
import com.jeequan.jeepay.JeepayClient;
import com.jeequan.jeepay.exception.JeepayException;
import com.jeequan.jeepay.model.PayOrderCreateReqModel;
import com.jeequan.jeepay.request.PayOrderCreateRequest;
import com.jeequan.jeepay.response.PayOrderCreateResponse;
import com.wish.group05.base.entity.JrProduct;
import com.wish.group05.base.vo.FinancingVo;
import com.wish.group05.common.core.web.controller.BaseController;
import com.wish.group05.common.core.web.domain.AjaxResult;
import com.wish.group05.common.core.web.page.TableDataInfo;
import com.wish.group05.financial.service.FinancialVoService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

@RequestMapping("financial")
@RestController
public class FinancialVoController extends BaseController {

    @Autowired
    FinancialVoService financialVoService;


    @GetMapping("financialList")
    public TableDataInfo list(FinancingVo financingVo)
    {
        startPage();
        List<FinancingVo> financingVos = financialVoService.queryFinancingList(financingVo);

        return getDataTable(financingVos);
    }


}
